﻿@model IEnumerable<YashuMedical.msHospital>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table class="table" id="tblHospital">
    <thead>
        <tr>
            <th>
                @Html.DisplayNameFor(model => model.Code)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Name)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.PracticeNo)
            </th>
            @*<th>
                    @Html.DisplayNameFor(model => model.ProcessDateTime)
                </th>
                <th>
                    @Html.DisplayNameFor(model => model.ProcessUserName)
                </th>*@
            <th></th>
        </tr>
    </thead><tbody>
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.Code)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Name)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.PracticeNo)
            </td>
            @*<td>
                    @Html.DisplayFor(modelItem => item.ProcessDateTime)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.ProcessUserName)
                </td>*@
            <td>
                @Html.ActionLink("Edit", "Edit", new { id = item.pkHospitalID }) |
                @Html.ActionLink("Details", "Details", new { id = item.pkHospitalID }) |
                @Html.ActionLink("Delete", "Delete", new { id = item.pkHospitalID })
            </td>
        </tr>
    }
</tbody>
</table>
<script>
    $(document).ready(function () {
        $('#tblHospital').dataTable({
        });
    });
</script>